---
title: "SQL-007: Retrieve hearing location code list"
summary: Retrieve the hearing location code list for attorney-assignment maintenance.
status: draft
owner: SAIF Documentation Pipeline
last_reviewed: 2026-08-21
library: SAIF.Application.Claim.Legal
reference_type: embedded
---

# SQL-007 Retrieve hearing location code list

Retrieves the full `HEARING_LOCATION_CODE` list, ordered by description, for the `LOCATIONCODESQL` code-table lookup used by the attorney-assignment maintenance UI.

## Classification

| Field | Value |
| --- | --- |
| **SQL ID** | SQL-007 |
| **Operation type** | Read |
| **Execution method** | Inline SQL (`clsCodeCollection.GetCodeCollection`) |
| **Database** | Oracle |
| **Command type** | Text |
| **Business object** | N/A (Application layer) |
| **Criteria property** | N/A (Application layer) |
| **Lifecycle method** | N/A (Application layer) |
| **Application class** | `clsAttorneyTableManager` |

## Parameters

No runtime parameters — this is a static code-table lookup constant (`LOCATIONCODESQL`), executed as-is via `clsCodeCollection.GetCodeCollection(DPI, LOCATIONCODESQL)`.

## Tables

| Table | Access | Columns used |
| --- | --- | --- |
| [HEARING_LOCATION_CODE](../database-tables.md#hearing_location_code) | SELECT | `CODE`, `CODE_DESCR` |

## Sample SQL

```sql
SELECT code, code_descr
FROM HEARING_LOCATION_CODE
ORDER BY code_descr
```

## Sources
- `SAIF.Application.Claim.Legal\clsAttorneyTableManager.vb`
